<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="js/vue.js">
			
		</script>
	</head>
	<body>
		<div id="app">
			<span>{{msg}}</span><hr>
			<button @click="fun">点击</button>
			<button @dblclick="fun">点击2</button>
		</div>
	</body>
	<script>
		let app=new Vue({
			el:"#app",
			data:{
				msg:"<font color='red'>我喜欢打麻将</font>",
			},
			methods:{
				fun(){
					this.msg="我喜欢打篮球";
				},
				fun2(){
					
				}
			}
		})
	</script>
</html>
